package com.example.tuike.config;

/*** @Author supersaiya
 * @Description TODO

 * @Date 2025/2/9 16:53

 * @Version 1.0*/
import com.example.tuike.entity.FetchTask;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.PriorityBlockingQueue;

@Configuration
public class QueueConfig {
    @Bean
    public PriorityBlockingQueue<FetchTask> taskQueue() {
        return new PriorityBlockingQueue<>();
    }
}